import * as Cesium from "cesium/Cesium";
import 'cesium/Widgets/widgets.css'
import './CesiumMap.css';

class CesiumMap{
  constructor(container,options={}){
    this.createViewer(container);
  }

  createViewer(container){
    let viewer = undefined;  
    if(Cesium.defined(container)){
      viewer = new Cesium.Viewer(container);
    }else{
      const container = document.createElement("div");
      container.className=`map`;
      document.body.appendChild(container);
      viewer = new Cesium.Viewer(container);
    }
  }
}
export default CesiumMap;